import { useShareAppMessage } from '@tarojs/taro'

export const useShareApp = () => {
    useShareAppMessage((res) => {
        if (res.from === 'button') {
            // 来自页面内转发按钮
            console.log(res.target)
        }
        return {
            title: '停车无虑，记录出行时间。车牌：粤BGX...出行时间：7:00',
            path: '/pages/index/index',
            imageUrl: 'https://cdn.krisli.cn/imgs/39bba63ee13ce547175bd9303.png'
        }
    })
}
